import { createApp } from 'vue'
//import './style.css'
import App from './App.vue'
import router from './router/index'
import ElementPlus from 'element-plus'//引入element-plus库
import zhCn from 'element-plus/es/locale/lang/zh-cn'//element-plus国际化引入
import 'element-plus/dist/index.css'
import myconfirm from './utils/myconfirm'//引入确认提示框
import * as ElementPlusIconsVue from '@element-plus/icons-vue'//引入图标
import { createPinia } from 'pinia'//引入pinia构造函数
const pinia = createPinia()//实例化pinia
const app = createApp(App);
app.use(router).use(ElementPlus, {
  locale: zhCn,
}).use(pinia).mount('#app');//使用router，element-plus，pinia
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }//注册图标
app.config.globalProperties.$myconfirm = myconfirm;//全局挂载确认提示框